<?php
/**
 * TOP API: alitrip.travel.poi.search request
 * 
 * @author auto create
 * @since 1.0, 2018.07.25
 */
class AlitripTravelPoiSearchRequest
{
	/** 
	 * POI信息ID；
	 **/
	private $id;
	
	/** 
	 * POI信息名称
	 **/
	private $name;
	
	/** 
	 * POI类型；0->城市；1->机场；2->火车站；3->汽车站；4->酒店；5->经典；6->购物；7->美食；9->  玩乐;10->阿里旅行服务站；11->服务
	 **/
	private $type;
	
	private $apiParas = array();
	
	public function setId($id)
	{
		$this->id = $id;
		$this->apiParas["id"] = $id;
	}

	public function getId()
	{
		return $this->id;
	}

	public function setName($name)
	{
		$this->name = $name;
		$this->apiParas["name"] = $name;
	}

	public function getName()
	{
		return $this->name;
	}

	public function setType($type)
	{
		$this->type = $type;
		$this->apiParas["type"] = $type;
	}

	public function getType()
	{
		return $this->type;
	}

	public function getApiMethodName()
	{
		return "alitrip.travel.poi.search";
	}
	
	public function getApiParas()
	{
		return $this->apiParas;
	}
	
	public function check()
	{
		
		RequestCheckUtil::checkNotNull($this->name,"name");
		RequestCheckUtil::checkNotNull($this->type,"type");
	}
	
	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
